package org.jeecg.modules.flower.entity;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 *
 * @descriptionauthor 实物出库汇总报表--日报表
 * @author gf
 * 2022-11-18 15:56
 *
 * @return
 */
@Data
public class FlowerOutorderDayHZ implements Serializable {
    private static final long serialVersionUID = 1L;
    /**id*/

    @ApiModelProperty(value = "id")
    private String id;
    /**来源基地*/
    @Excel(name = "来源基地", width = 15,dictTable = "t_flower_planting_base",dicText = "name",dicCode = "id")
    @ApiModelProperty(value = "来源基地")
    @Dict( dictTable = "t_flower_planting_base",dicText = "name",dicCode = "id")
    private String sourceBase;
    /**来源大棚*/
    @Excel(name = "来源大棚", width = 15,dictTable = "t_flower_planting_greenhouse",dicText = "name",dicCode = "id")
    @ApiModelProperty(value = "来源大棚")
    @Dict( dictTable = "t_flower_planting_greenhouse",dicText = "name",dicCode = "id")
    private String sourceGreenhouse;
    @Excel(name = "库房", width = 15,dictTable = "flower_storehouse",dicText = "name",dicCode = "code")
    @ApiModelProperty(value = "库房")
    @Dict( dictTable = "flower_storehouse",dicText = "name",dicCode = "code")
    private String storehouse;

    @Excel(name = "成本中心", width = 15 , dicCode = "ch_cost"  )
    @Dict(dicCode = "ch_cost" )
    @ApiModelProperty(value = "成本中心")
    private String cost;

    /**订单号*/
    @Excel(name = "订单号", width = 15)
    @ApiModelProperty(value = "订单号")
    private String orderNo;


    /**'客户名称'*/
    @Excel(name = "客户名称", width = 15)
    @ApiModelProperty(value = "客户名称")
    private String user;


    @Excel(name = "业务员", width = 15)
    @ApiModelProperty(value = "业务员")
    private String businessPerson;


    @Excel(name = "出库时间", width = 15, format = "yyyy-MM-dd HH:mm:ss" )
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "出库时间")
    private Date stockInTime;

    /**出库人*/
    @Excel(name = "出库人", width = 15)
    @ApiModelProperty(value = "出库人")
    private String stockOutUser;

    @Excel(name = "来源", width = 15)
    @ApiModelProperty(value = "来源")
    private String source;

    @Excel(name = "账期号", width = 15    )
    @ApiModelProperty(value = "账期号")
    private String period;


    /**数量*/
    @Excel(name = "数量", width = 15, type=4, isStatistics=true)
    @ApiModelProperty(value = "数量")
    private BigDecimal number;

    @Excel(name = "总价", width = 15, type=4, isStatistics=true)
    @ApiModelProperty(value = "总价")
    private BigDecimal totalprice;

    @Excel(name = "状态", width = 17 , dicCode = "ch_outorderState" , needMerge = true  )
    @Dict(  dicCode = "ch_outorderState"  )
    @ApiModelProperty(value = "状态（-1草稿，0已出库，1预收资金已确认，2运管已确认）")
    private Integer state;

    @Excel(name = "创建人", width = 15,  dictTable = "sys_user",dicText = "realname",dicCode = "username" ,needMerge = true )
    @Dict( dictTable = "sys_user",dicText = "realname",dicCode = "username")
    @ApiModelProperty(value = "创建人")
    private String createBy;

    /**备注*/
    @Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private String remarks;



}
